<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@include file="/white/common/taglibs.jsp"%>
<%@include file="/white/common/common.jsp"%>

<body>
	<div id="div_title">
		<h3>
			用户新增
		</h3>
	</div>

	<!-- Data Form -->
	<%@include file="/white/common/message.jsp"%>
	<s:form method="post" action="userAction!save" theme="simple">
		<s:token />

		<table cellpadding="0" cellspacing="0" class="t_form">
			<tr>
				<td width="15%">
					UserId:
				</td>
				<td>
					${user.userId}
				</td>
			</tr>		
			<tr>
				<td width="15%">
					名称:
				</td>
				<td>
					<s:textfield name="user.name" maxlength="64" />
					<span class="red_star">*</span>
				</td>
			</tr>
			<tr>
				<td width="15%">
					显示名称:
				</td>
				<td>
					<s:textfield name="user.displayName" maxlength="64" />
					<span class="red_star">*</span>
				</td>
			</tr>
			<tr>
				<td width="15%">
					密码:
				</td>
				<td>
					<s:password name="user.password"></s:password>
					<span class="red_star">*</span>
				</td>
			</tr>
			<tr>
				<td width="15%">
					电子邮件:
				</td>
				<td>
					<s:textfield name="user.email" maxlength="128" />
					<span class="red_star">*</span>
				</td>
			</tr>
			<tr>
				<td width="15%">
					状态:
				</td>
				<td>
					<%-- <s:textfield name="user.status" maxlength="15" /> --%>
					<s:select id="user.status" name="user.status" style="width: 150px"  
							list="#{'':'','0':'有效','1':'失效'}"
							listKey="key" listValue="value" ></s:select>
					<span class="red_star">*</span>
				</td>
			</tr>
		</table>

		<div id="div_button">

			<s:submit key="添加" action="userAction!save"
				onclick="if(validateForm()){return true;}else{return false;}"
				cssClass="input_button" />
			<s:submit key="返回"
				onclick="form.action='userAction!queryByPage.action';return true;"
				cssClass="input_button" />
		</div>

		<s:hidden name="searchString" />

	</s:form>
	<!--Data Form End -->

</body>

</html>